package com.alinkeji.order.web;

import org.springframework.web.bind.annotation.RestController;

import com.alinkeji.feign.api.OrderControllerApi;
import com.alinkeji.order.bean.OrderBean;

@RestController
public class OrderController implements OrderControllerApi {

	@Override
	public Object getOrder() {
		return "this is get order";
	}
	
	@Override
	public Object saveOrder(){
		OrderBean order = new OrderBean();
		order.setOrderId(String.valueOf(System.currentTimeMillis()));
		order.setOrderName("linrol");
		order.setOrderNum(1);
		order.setOrderStatus("pending payment");
		System.out.println("save order sucess,the order status pending payment");
		return order;
	}

}
